package cn.intotw.rdcj.admin.shiro;

import org.redisson.api.RedissonClient;
import org.redisson.spring.cache.CacheConfig;
import org.redisson.spring.cache.RedissonSpringCacheManager;

/**
 * Created by Chenxiang
 *
 * @generator: IntelliJ IDEA
 * @description:
 * @project: rdcj
 * @package: cn.intotw.rdcj.admin.shiro
 * @date: 2021年06月07日 10时53分
 */
public class ShiroRedissonSpringCacheManager extends RedissonSpringCacheManager {
    public ShiroRedissonSpringCacheManager(RedissonClient redisson) {
        super(redisson);
    }

    @Override
    protected CacheConfig createDefaultConfig() {
        final CacheConfig defaultConfig = super.createDefaultConfig();
        defaultConfig.setTTL(5*1000);
        return defaultConfig;
    }
}
